<template>
  <div id="surpriseYard" class="product-detail">
    <!-- 产品头部 -->
    <div class="product-hero">
      <div class="hero-content">
        <div class="hero-badge">
          <span class="badge-text">创新盲盒商城</span>
        </div>
        <h1 class="hero-title">箱野盲盒商城</h1>
        <div class="hero-slogan">
          <h2>"一箱未知，十倍惊喜"</h2>
        </div>
        <p class="hero-subtitle">重新定义盲盒经济，让每次开箱都充满无限可能</p>
        
        <div class="hero-badges">
          <span class="version-badge">SURPRISE YARD</span>
          <span class="license-badge">Next.js 14</span>
          <span class="tech-badge">创新商业</span>
        </div>
      </div>
      <div class="hero-visual">
        <div class="visual-container">
          <img src="../assets/img/service3.jpg" alt="箱野盲盒商城" class="hero-image" />
          <div class="performance-overlay">
            <div class="perf-card surprise">
              <span class="perf-number">10x</span>
              <span class="perf-label">惊喜倍数</span>
            </div>
            <div class="perf-card eco">
              <span class="perf-number">100%</span>
              <span class="perf-label">循环经济</span>
            </div>
            <div class="perf-card social">
              <span class="perf-number">24h</span>
              <span class="perf-label">社交分享</span>
            </div>
          </div>
        </div>
      </div>
    </div>
    
    <!-- 核心价值 -->
    <div class="core-features">
      <div class="section-header">
        <h2>核心价值</h2>
        <p>重新定义盲盒经济，创造意想不到的惊喜体验</p>
      </div>
      
      <div class="features-showcase">
        <div class="feature-highlight">
          <div class="feature-icon surprise">
            <i class="glyphicon glyphicon-gift"></i>
          </div>
          <h3>惊喜体验</h3>
          <p>未知开箱带来的情感刺激和满足感，每个盒子都是一次冒险</p>
        </div>
        
        <div class="feature-highlight">
          <div class="feature-icon value">
            <i class="glyphicon glyphicon-usd"></i>
          </div>
          <h3>价格优势</h3>
          <p>远低于市价获得品质商品的机会，让消费者获得超值体验</p>
        </div>
        
        <div class="feature-highlight">
          <div class="feature-icon eco">
            <i class="glyphicon glyphicon-leaf"></i>
          </div>
          <h3>环保理念</h3>
          <p>参与循环经济，让废弃物品获得新生，推动可持续发展</p>
        </div>
        
        <div class="feature-highlight">
          <div class="feature-icon social">
            <i class="glyphicon glyphicon-share"></i>
          </div>
          <h3>社交货币</h3>
          <p>开箱分享成为社交媒体内容创作素材，增强用户互动</p>
        </div>
      </div>
    </div>

    <!-- 产品特色 -->
    <div class="product-features">
      <div class="section-header">
        <h2>产品特色</h2>
        <p>从神秘盲盒到社区交流，打造完整的惊喜生态</p>
      </div>
      
      <div class="features-grid">
        <div class="feature-card wow fadeInUp" data-wow-delay="0.1s">
          <div class="feature-icon">
            <i class="glyphicon glyphicon-gift"></i>
          </div>
          <h3>神秘盲盒</h3>
          <p>多样化的盲盒类型，从日用品到数码产品应有尽有</p>
          <ul class="feature-details">
            <li>日常生活用品</li>
            <li>数码电子产品</li>
            <li>时尚潮流单品</li>
          </ul>
        </div>
        
        <div class="feature-card wow fadeInUp" data-wow-delay="0.2s">
          <div class="feature-icon">
            <i class="glyphicon glyphicon-ok-circle"></i>
          </div>
          <h3>品质保证</h3>
          <p>严格的商品筛选机制，确保盲盒内容价值</p>
          <ul class="feature-details">
            <li>专业品控团队</li>
            <li>多重质量检测</li>
            <li>价值保障承诺</li>
          </ul>
        </div>
        
        <div class="feature-card wow fadeInUp" data-wow-delay="0.3s">
          <div class="feature-icon">
            <i class="glyphicon glyphicon-user"></i>
          </div>
          <h3>个性定制</h3>
          <p>根据用户偏好推荐合适的盲盒类型</p>
          <ul class="feature-details">
            <li>智能推荐算法</li>
            <li>偏好学习机制</li>
            <li>个性化体验</li>
          </ul>
        </div>
        
        <div class="feature-card wow fadeInUp" data-wow-delay="0.4s">
          <div class="feature-icon">
            <i class="glyphicon glyphicon-facetime-video"></i>
          </div>
          <h3>开箱直播</h3>
          <p>支持开箱过程直播分享，增强互动体验</p>
          <ul class="feature-details">
            <li>实时直播功能</li>
            <li>社交媒体集成</li>
            <li>互动评论系统</li>
          </ul>
        </div>
      </div>
    </div>

    <!-- 技术架构 -->
    <div class="tech-section">
      <div class="section-header">
        <h2>技术架构</h2>
        <p>现代化技术栈，打造流畅的用户体验</p>
      </div>
      
      <div class="tech-stack">
        <div class="tech-category">
          <h3>前端技术</h3>
          <div class="tech-items">
            <div class="tech-item">
              <div class="tech-logo">Next.js</div>
              <span class="tech-version">14</span>
            </div>
            <div class="tech-item">
              <div class="tech-logo">TypeScript</div>
              <span class="tech-version">5+</span>
            </div>
            <div class="tech-item">
              <div class="tech-logo">Tailwind CSS</div>
              <span class="tech-version">3+</span>
            </div>
          </div>
        </div>
        
        <div class="tech-category">
          <h3>品牌设计</h3>
          <div class="tech-items">
            <div class="tech-item">
              <div class="tech-logo">工业黄</div>
              <span class="tech-desc">#FFB82E</span>
            </div>
            <div class="tech-item">
              <div class="tech-logo">水泥灰</div>
              <span class="tech-desc">视觉基调</span>
            </div>
            <div class="tech-item">
              <div class="tech-logo">集装箱</div>
              <span class="tech-desc">设计灵感</span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- CTA区域 -->
    <div class="product-cta">
      <div class="cta-content">
        <h2>体验盲盒的无限惊喜</h2>
        <p>立即加入箱野盲盒商城，开启您的惊喜之旅</p>
        <div class="cta-buttons">
          <a href="#" class="btn-primary">立即体验</a>
          <a href="#" class="btn-secondary">了解更多</a>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup name="surpriseYard">
import { onMounted } from 'vue'
import WOW from 'wow.js'

onMounted(() => {
  const wow = new WOW()
  wow.init()
})
</script>

<style scoped>
/* 箱野盲盒商城专用样式 */
.product-detail {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: #1d1d1f;
}

/* 产品头部 */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  margin-bottom: 24px;
}

.badge-text {
  display: inline-block;
  background: rgba(255, 184, 46, 0.08);
  color: #FFB82E;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.hero-slogan h2 {
  font-size: 20px;
  color: #FFB82E;
  font-style: italic;
  text-align: center;
  background: linear-gradient(135deg, #fff8f0 0%, #ffeecc);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #FFB82E;
  margin: 0 0 24px 0;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 19px;
  color: #86868b;
  margin: 0 0 32px 0;
  line-height: 1.42;
}

.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.version-badge,
.license-badge,
.tech-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.version-badge {
  background: rgba(255, 184, 46, 0.08);
  color: #FFB82E;
}

.license-badge {
  background: rgba(52, 199, 89, 0.08);
  color: #34c759;
}

.tech-badge {
  background: rgba(255, 149, 0, 0.08);
  color: #ff9500;
}

/* 视觉区域 */
.hero-visual {
  position: relative;
}

.visual-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.performance-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.perf-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.perf-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #1d1d1f;
}

.perf-label {
  font-size: 12px;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 核心特性 */
.core-features {
  padding: 120px 0;
  background: #f5f5f7;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 19px;
  color: #86868b;
  margin: 0;
  line-height: 1.42;
}

.features-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.feature-highlight {
  background: #ffffff;
  border-radius: 18px;
  padding: 48px 32px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

.feature-highlight:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
}

.feature-icon.surprise {
  background: linear-gradient(135deg, #FFB82E, #FF8C42);
}

.feature-icon.value {
  background: linear-gradient(135deg, #30d158, #28a745);
}

.feature-icon.eco {
  background: linear-gradient(135deg, #34c759, #30d158);
}

.feature-icon.social {
  background: linear-gradient(135deg, #007aff, #0051d5);
}

.feature-icon i {
  font-size: 32px;
  color: #ffffff;
}

.feature-highlight h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 16px 0;
}

.feature-highlight p {
  font-size: 17px;
  color: #515154;
  line-height: 1.47;
  margin: 0;
}

/* 产品特色 */
.product-features {
  padding: 120px 0;
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 40px 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 184, 46, 0.1);
}

.feature-card .feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #FFB82E, #FF8C42);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-card .feature-icon i {
  font-size: 24px;
  color: #ffffff;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.feature-card p {
  font-size: 16px;
  font-weight: 400;
  color: #515154;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.feature-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-details li {
  font-size: 14px;
  color: #86868b;
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.feature-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFB82E;
  font-weight: 600;
}

/* 技术架构 */
.tech-section {
  padding: 120px 0;
  background: #f5f5f7;
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 60px;
}

.tech-category h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 32px 0;
  letter-spacing: -0.01em;
}

.tech-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #ffffff;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.tech-item:hover {
  background: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tech-logo {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
}

.tech-version,
.tech-desc {
  font-size: 13px;
  font-weight: 500;
  color: #FFB82E;
  background: rgba(255, 184, 46, 0.08);
  padding: 4px 8px;
  border-radius: 8px;
}

/* CTA区域 */
.product-cta {
  padding: 120px 0;
  background: #1d1d1f;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: #f5f5f7;
  margin: 0 0 16px 0;
}

.cta-content p {
  font-size: 19px;
  color: #a1a1a6;
  margin: 0 0 40px 0;
  line-height: 1.42;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 400;
  border-radius: 980px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 160px;
}

.btn-primary {
  background: #FFB82E;
  color: #ffffff;
  border: 2px solid #FFB82E;
}

.btn-primary:hover {
  background: #FF8C42;
  border-color: #FF8C42;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 184, 46, 0.4);
  text-decoration: none;
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: #FFB82E;
  border: 2px solid rgba(255, 184, 46, 0.8);
}

.btn-secondary:hover {
  background: rgba(255, 184, 46, 0.1);
  color: #FF8C42;
  border-color: #FFB82E;
  transform: translateY(-2px);
  text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }

  .performance-overlay {
    flex-direction: column;
    gap: 12px;
  }

  .perf-card {
    padding: 12px 16px;
  }

  .core-features,
  .product-features,
  .tech-section,
  .product-cta {
    padding: 80px 0;
  }

  .features-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-highlight {
    padding: 32px 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-card {
    padding: 32px 24px;
  }

  .tech-stack {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}</style>